# ui/dialogs.py

from PyQt6.QtWidgets import QMessageBox, QWidget

def show_info(parent: QWidget, title: str, message: str):
    """
    信息提示框
    """
    QMessageBox.information(parent, title, message)

def show_error(parent: QWidget, title: str, message: str):
    """
    错误提示框
    """
    QMessageBox.critical(parent, title, message)
